package com.cat.service.impl;

import com.cat.dao.CusDao;
import com.cat.pojo.Customs;
import com.cat.service.CusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CusServiceImpl implements CusService {
    @Autowired
     private CusDao cusDao;
    public Customs login(String name, String pass) {
        return cusDao.login(name,pass);
    }

    @Override
    public boolean saveCustoms(Customs customs) {
        return cusDao.saveCustoms(customs)>0;
    }

    @Override
    public boolean updateCustoms(Customs customs) {
        return cusDao.updateCustoms(customs)>0;
    }

    @Override
    public Customs getCusByid(int id) {
        return cusDao.getCusByid(id);
    }
}
